<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Services\ApiServer\Server;
use App\Services\ApiServer\Error;

/**
 * api入口控制器
 * Class RouterController
 */
class RouterController extends Controller
{
    /**
     * API总入口
     * @return string|array
     */
    public function index()
    {
        $server = new Server(new Error());
        return $server->run();
    }
}
